package com.example.generator.service;

import com.example.generator.entity.TableColumnDO;
import com.example.generator.repository.ITableColumnDomainRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * com.example.generator.service
 *
 * @author smallNorth_Lee
 * @date 2022/1/13
 */
@Service
@AllArgsConstructor
public class TableColumnAppService {

    private final ITableColumnDomainRepository tableColumnDomainService;


    /**
     * 查询表下所有字段
     *
     * @param tableName 表名
     * @return
     */
    public List<TableColumnDO> queryTableColumn(String tableName) {
        return tableColumnDomainService.queryTableColumn(tableName);
    }
}
